local APP_ROOT = ngx.var.document_root
local Appconf={}
Appconf.vanilla_root = '/data/vanilla/framework'
Appconf.vanilla_version = '0_1_0_rc5'
Appconf.name = 'vanillademo'

Appconf.route='vanilla.v.routes.restful'
Appconf.bootstrap='application.bootstrap'
Appconf.site_url='/'
Appconf.domain='127.0.0.100'

Appconf.app={}
Appconf.app.root=APP_ROOT

Appconf.controller={}
Appconf.controller.path=Appconf.app.root .. '/application/controllers/'

Appconf.view={}
Appconf.view.path=Appconf.app.root .. '/application/views/'
Appconf.view.suffix='.html'
Appconf.view.auto_render=true

Appconf.mysql={
    host = "127.0.0.1",
    port = 3306,
    database = "blog",
    user = "root",
    password = "xxx",
    max_package_size = 1024,
    pre = "pre_"
}

Appconf.cache={
	type='redis',
	redis={
		{
			host='127.0.0.1',
			port='6379',
			timeout='1000',
			db_index=1
		}
	}
}

return Appconf
